package de.tto.dating.utils;

public class UserSupport {

	private static final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789";

	public String generateConfirmKey() {

		StringBuffer key = new StringBuffer();
		for (int i = 0; i < 20; i++) {
			int index = (int) ((Math.random() * ALPHABET.length() - 1) + 1);
			key.append(ALPHABET.charAt(index));
		}

		assert key.length() == 20;
		return key.toString();
	}

}
